extends AbstractResource
This is the resource which gets created when a controller mapping is located. It executes the javascript and templates Scripts executed from a ControllerResource have access to these global variables
- controllerMappings
- views - ViewsBuilder
- formatter - Formatter
- log
- applications
- transactionManager - AppTransactionManager
- fileManager - FileManager
Properties
Name | Returns | Notes | Example |
---|---|---|---|
hash | String | ||
websiteName | String | ||
currentUser | UserResource | Returns the currently authenticated user for this request | |
parent | CommonCollectionResource | ||
name | String | ||
title | String | ||
pathParams | Map | ||
method | ControllerMethod | ||
appSettings | Map | ||
seoContent | SeoContentBean | ||
href | String | ||
path | Path | ||
controllerMappings | ControllerMappingList |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
jsonView ( jsonObject ) | JsonView | Creates a view which serialises the given object to json. If the object is a JsonResult then it is returned | |
throwNotFound ( reason ) | void | ||
throwBadRequest ( reason ) | void | ||
dataBind ( target, params ) | void |
Ask a question, or offer an answer